AnnotationRetention

enum AnnotationRetention : Enum<AnnotationRetention>

Contains the list of possible annotation's retentions.

Determines how an annotation is stored in binary output.

Entries

RUNTIME
Link copied to clipboard

Annotation is stored in binary output and visible for reflection (default retention)

BINARY
Link copied to clipboard

Annotation is stored in binary output, but invisible for reflection

SOURCE
Link copied to clipboard

Annotation isn't stored in binary output

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int